﻿#region Using directives

using System;
using System.Collections.Generic;
using System.Text;

#endregion

using Weazel.Badger.Vhdl.Types;

namespace Weazel.Badger.Vhdl.Operators.Unary
{
  public class Not : UnaryFunction
  {
    private static UnaryTypeMap[] typeMaps = new UnaryTypeMap[]
      {
        new UnaryTypeMap(Types.Types.StdLogic, Types.Types.StdLogic),
        new UnaryTypeMap(Types.Types.StdLogicVector, Types.Types.StdLogicVector)
      };

    public override UnaryTypeMap[] TypeMap
    {
      get 
      { 
        return typeMaps; 
      }
    }

    public Not()
    {
    }

    public override string ToString(string child)
    {
      return string.Format("not {0}", child);
    }
  }
}
